﻿@model IEnumerable<SerieSpotter.Models.Show>
<div id="seriesList">
@foreach (var item in Model)
{
    <div style='float:left;'>

        @* jQuery lightbox, wilt niet werken!
    <a href="@item.PosterURL" rel="lightbox">
        <img src="@item.PosterURL" alt="poster" />
    </a>
    *@

       <img src="@item.PosterURL" alt="poster" width="150" style="float: left; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; padding-top:10px" />
        <h2>
            @Html.ActionLink(@item.Title, "Index", "Seasons", new { id = item.Id }, null)
        </h2>
        
        <p>@item.Description</p>
        <p>[@item.Genre]</p>


        @if (User.IsInRole("admin")) // enkel zitchbaar voor admin
        {
            @Html.ActionLink(@Resources.Resource.Edit, "Edit", new { id = item.Id })
        }
        
    </div>

}
 </div>